//
//  FragmentModel.m
//  项目
//
//  Created by 张诗雨 on 15/1/6.
//  Copyright (c) 2015年 张诗雨. All rights reserved.
//

#import "FragmentModel.h"

@implementation FragmentModel
- (void)dealloc
{
    [super dealloc];
    [_contentid release];
    [_userinfo release];
    [_firstimage release];
    [_shortcontent release];
    [_counterList release];
    [_webview_url release];
    [_addtime_f release];
}
- (instancetype)initWithContentid:(NSString *)contentid userinfo:(NSDictionary *)userinfo addtime:(NSInteger)addtime addtime_f:(NSString *)addtime_f firstimage:(NSString *)firstimage shortcontent:(NSString *)shortcontent counterList:(NSDictionary *)counterList webview_url:(NSString *)webview_url timeline_color:(NSInteger)timeline_color
{
    self = [super init];
    if (self) {
        self.userinfo = [NSDictionary dictionary];
        self.counterList = [NSDictionary dictionary];
        self.contentid = contentid;
        self.userinfo = userinfo;
        self.addtime = addtime;
        self.addtime_f = addtime_f;
        self.firstimage = firstimage;
        self.shortcontent = shortcontent;
        self.counterList = counterList;
        self.webview_url = webview_url;
        self.timeline_color = timeline_color;
        
    }
    return self;
}
+ (instancetype)fragmentModelWithContentid:(NSString *)contentid userinfo:(NSDictionary *)userinfo addtime:(NSInteger)addtime addtime_f:(NSString *)addtime_f firstimage:(NSString *)firstimage shortcontent:(NSString *)shortcontent counterList:(NSDictionary *)counterList webview_url:(NSString *)webview_url timeline_color:(NSInteger)timeline_color
{
    FragmentModel *model = [[FragmentModel alloc] initWithContentid:contentid userinfo:userinfo addtime:addtime addtime_f:addtime_f firstimage:firstimage shortcontent:shortcontent counterList:counterList webview_url:webview_url timeline_color:timeline_color];
    
    return model;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
- (id)valueForUndefinedKey:(NSString *)key
{
    return @"";
}
@end
